﻿namespace Yom.Model
{
    using System;

    /// <summary>
    /// 公告实体对象
    /// 
    /// 创建: 邱柯皓 2009/01/19 09:10
    /// </summary>
    public class Note
    {
        #region 私有成员定义
        private int _NoteID;
        private int _AdminID;
        private string _Title;
        private string _Content;
        private string _Url;
        private bool _IsTop;
        private DateTime _PostTime;
        private string _PostIP;
        #endregion

        #region 成员属性暴露
        /// <summary>
        /// 公告编号
        /// </summary>
        public int NoteID { get { return this._NoteID; } set { this._NoteID = value; } }

        /// <summary>
        /// 发布管理员编号
        /// </summary>
        public int AdminID { get { return this._AdminID; } set { this._AdminID = value; } }

        /// <summary>
        /// 公告标题
        /// </summary>
        public string Title { get { return this._Title; } set { this._Title = value; } }

        /// <summary>
        /// 公告内容
        /// </summary>
        public string Content { get { return this._Content; } set { this._Content = value; } }

        /// <summary>
        /// 外部链接地址
        /// </summary>
        public string Url { get { return this._Url; } set { this._Url = value; } }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool IsTop { get { return this._IsTop; } set { this._IsTop = value; } }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PostTime { get { return this._PostTime; } set { this._PostTime = value; } }

        /// <summary>
        /// 发布IP地址
        /// </summary>
        public string PostIP { get { return this._PostIP; } set { this._PostIP = value; } }
        #endregion

        #region 构造函数
        public Note() { }

        public Note(int noteID, int adminID, string title, string content, string Url,
            bool isTop, DateTime postTime, string postIP)
        {
            this._NoteID = noteID;
            this._AdminID = adminID;
            this._Title = title;
            this._Content = content;
            this._Url = Url;
            this._IsTop = isTop;
            this._PostTime = postTime;
            this._PostIP = postIP;
        }
        #endregion
    }
}